package com.river.boot.biz.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.river.boot.common.base.BaseWithDateEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 菜品规格实体对象
 *
 * @author JiangCheng Xiang
 * @since 2025-04-25 15:49
 */
@Getter
@Setter
@TableName("biz_product_spec")
public class ProductSpec extends BaseWithDateEntity {

    private static final long serialVersionUID = 1L;

    private Long productId;

    /**
     * 规格名称(如:辣度)
     */
    private String name;

    /**
     * 是否必选
     */
    private Integer isRequired;

    private Integer sort;

    @TableField(exist = false)
    private List<ProductSpecOption> specOptions;
}
